@charset "utf-8";
/* CSS Document */


/*流体边框*/


/*////////////////////*/


.mainbox {
    position: relative;
    /* 超出隐藏需要加上 */
    overflow: hidden;
}


.line {
    /* 结合外层元素的相对定位 */
    position: absolute;
}

.line:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    /* 加上渐变效果，方可形成拖尾效果 */
    background: linear-gradient(90deg, transparent, orange);
    animation: animate1 8s linear infinite;
}

/* 分别控制其上下左右的定位距离，从而形成线条跟随效果 */
@keyframes animate1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.line:nth-child(2) {
    top: -100%;
    right: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, transparent, red);
    animation: animate2 8s linear infinite;
    /* 注意要加上延时触发动画效果，这样线条才会依次触发 */
    animation-delay: 2s;
}

@keyframes animate2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.line:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(270deg, transparent, green);
    animation: animate3 8s linear infinite;
    animation-delay: 4s;
}

@keyframes animate3 {
    0% {
        right: -100%;
        height: 10px;
    }

    50%,
    100% {
        height: 10px;
        right: 100%;
    }
}

.line:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #3a86ff);
    animation: animate4 8s linear infinite;
    animation-delay: 6s;
}

@keyframes animate4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}


.box {
    position: relative;
    width: 100px;
    height: 10px;
    margin-bottom: 10px;
    margin-left: 25%;
}

.box span {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #3498db;
    opacity: 0.5;
    border-radius: 100%;
    animation: anim 1s infinite ease-in-out;
}

.box > :nth-child(2) {
    left: 20px;
    animation-delay: 0.2s;
}

.box > :nth-child(3) {
    left: 40px;
    animation-delay: 0.4s;
}

.box > :nth-child(4) {
    left: 60px;
    animation-delay: 0.6s;
}

.box > :nth-child(5) {
    left: 80px;
    animation-delay: 0.8s;
}

.box > :nth-child(6) {
    left: 100px;
    animation-delay: 1.0s;
}

.box > :nth-child(7) {
    left: 120px;
    animation-delay: 1.2s;
}

.box > :nth-child(8) {
    left: 140px;
    animation-delay: 1.4s;
}

.box > :nth-child(9) {
    left: 160px;
    animation-delay: 1.6s;
}

.box > :nth-child(10) {
    left: 180px;
    animation-delay: 1.8s;
}

.box > :nth-child(11) {
    left: 200px;
    animation-delay: 2.0s;
}

.box > :nth-child(12) {
    left: 220px;
    animation-delay: 2.2s;
}

.box > :nth-child(13) {
    left: 240px;
    animation-delay: 2.4s;
}

.box > :nth-child(14) {
    left: 260px;
    animation-delay: 2.6s;
}

.box > :nth-child(15) {
    left: 280px;
    animation-delay: 2.8s;
}

.box > :nth-child(16) {
    left: 300px;
    animation-delay: 3.0s;
}

.box > :nth-child(17) {
    left: 320px;
    animation-delay: 3.2s;
}

.box > :nth-child(18) {
    left: 340px;
    animation-delay: 3.4s;
}

.box > :nth-child(19) {
    left: 360px;
    animation-delay: 3.6s;
}

.box > :nth-child(20) {
    left: 380px;
    animation-delay: 3.8s;
}

.dance_font {
    /*width: 80px;*/
    color: #77e1bd;
    animation: animate 1s linear infinite;
}

@keyframes animate {

    0%,
    25% {
        text-shadow: 20px 20px 20px #ccc577;
    }

    50% {
        text-shadow: 20px -20px 20px #5b0d7a;
    }

    75% {
        text-shadow: -20px 20px 20px #c39480;
    }

    100% {
        text-shadow: -20px -20px 20px #559c45;
    }
}


@keyframes animate {

    0%,
    25% {
        text-shadow: 2px 2px 2px #ff6384;
    }

    50% {
        text-shadow: 2px -2px 2px #ff6384;
    }

    75% {
        text-shadow: -2px 2px 2px #ff6384;
    }

    100% {
        text-shadow: -2px -2px 2px #ff6384;
    }
}


@keyframes anim {
    0% {
        opacity: 0.3;
        transform: translateY(0px);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
        background: #f9cdff;
    }
    100% {
        opacity: 0.3;
        transform: translateY(0px);
    }
}
